package com.funquer.cms.model;

import javax.persistence.Basic;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.sql.Timestamp;

/**
 * Created with IntelliJ IDEA.
 * User: Administrator
 * Date: 13-3-22
 * Time: 下午5:33
 * To change this template use File | Settings | File Templates.
 */
@javax.persistence.Table(name = "archives", schema = "", catalog = "funquer")
@Entity
public class ArchivesEntity {
    private String id;

    @javax.persistence.Column(name = "id")
    @Id
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    private String arctype;

    @javax.persistence.Column(name = "arctype")
    @Basic
    public String getArctype() {
        return arctype;
    }

    public void setArctype(String arctype) {
        this.arctype = arctype;
    }

    private String channeltype;

    @javax.persistence.Column(name = "channeltype")
    @Basic
    public String getChanneltype() {
        return channeltype;
    }

    public void setChanneltype(String channeltype) {
        this.channeltype = channeltype;
    }

    private String title;

    @javax.persistence.Column(name = "title")
    @Basic
    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    private String flags;

    @javax.persistence.Column(name = "flags")
    @Basic
    public String getFlags() {
        return flags;
    }

    public void setFlags(String flags) {
        this.flags = flags;
    }

    private int weight;

    @javax.persistence.Column(name = "weight")
    @Basic
    public int getWeight() {
        return weight;
    }

    public void setWeight(int weight) {
        this.weight = weight;
    }

    private String litpic;

    @javax.persistence.Column(name = "litpic")
    @Basic
    public String getLitpic() {
        return litpic;
    }

    public void setLitpic(String litpic) {
        this.litpic = litpic;
    }

    private String source;

    @javax.persistence.Column(name = "source")
    @Basic
    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    private String writer;

    @javax.persistence.Column(name = "writer")
    @Basic
    public String getWriter() {
        return writer;
    }

    public void setWriter(String writer) {
        this.writer = writer;
    }

    private String keywords;

    @javax.persistence.Column(name = "keywords")
    @Basic
    public String getKeywords() {
        return keywords;
    }

    public void setKeywords(String keywords) {
        this.keywords = keywords;
    }

    private int ismark;

    @javax.persistence.Column(name = "ismark")
    @Basic
    public int getIsmark() {
        return ismark;
    }

    public void setIsmark(int ismark) {
        this.ismark = ismark;
    }

    private int click;

    @javax.persistence.Column(name = "click")
    @Basic
    public int getClick() {
        return click;
    }

    public void setClick(int click) {
        this.click = click;
    }

    private Timestamp senddate;

    @javax.persistence.Column(name = "senddate")
    @Basic
    public Timestamp getSenddate() {
        return senddate;
    }

    public void setSenddate(Timestamp senddate) {
        this.senddate = senddate;
    }

    private Timestamp publishdate;

    @javax.persistence.Column(name = "publishdate")
    @Basic
    public Timestamp getPublishdate() {
        return publishdate;
    }

    public void setPublishdate(Timestamp publishdate) {
        this.publishdate = publishdate;
    }

    private int goodpost;

    @javax.persistence.Column(name = "goodpost")
    @Basic
    public int getGoodpost() {
        return goodpost;
    }

    public void setGoodpost(int goodpost) {
        this.goodpost = goodpost;
    }

    private int badpost;

    @javax.persistence.Column(name = "badpost")
    @Basic
    public int getBadpost() {
        return badpost;
    }

    public void setBadpost(int badpost) {
        this.badpost = badpost;
    }

    private String description;

    @javax.persistence.Column(name = "description")
    @Basic
    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    private int alllowerpost;

    @javax.persistence.Column(name = "alllowerpost")
    @Basic
    public int getAlllowerpost() {
        return alllowerpost;
    }

    public void setAlllowerpost(int alllowerpost) {
        this.alllowerpost = alllowerpost;
    }

    private int arcrank;

    @javax.persistence.Column(name = "arcrank")
    @Basic
    public int getArcrank() {
        return arcrank;
    }

    public void setArcrank(int arcrank) {
        this.arcrank = arcrank;
    }

    private String creater;

    @javax.persistence.Column(name = "creater")
    @Basic
    public String getCreater() {
        return creater;
    }

    public void setCreater(String creater) {
        this.creater = creater;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        ArchivesEntity that = (ArchivesEntity) o;

        if (alllowerpost != that.alllowerpost) return false;
        if (arcrank != that.arcrank) return false;
        if (badpost != that.badpost) return false;
        if (click != that.click) return false;
        if (goodpost != that.goodpost) return false;
        if (ismark != that.ismark) return false;
        if (weight != that.weight) return false;
        if (arctype != null ? !arctype.equals(that.arctype) : that.arctype != null) return false;
        if (channeltype != null ? !channeltype.equals(that.channeltype) : that.channeltype != null) return false;
        if (creater != null ? !creater.equals(that.creater) : that.creater != null) return false;
        if (description != null ? !description.equals(that.description) : that.description != null) return false;
        if (flags != null ? !flags.equals(that.flags) : that.flags != null) return false;
        if (id != null ? !id.equals(that.id) : that.id != null) return false;
        if (keywords != null ? !keywords.equals(that.keywords) : that.keywords != null) return false;
        if (litpic != null ? !litpic.equals(that.litpic) : that.litpic != null) return false;
        if (publishdate != null ? !publishdate.equals(that.publishdate) : that.publishdate != null) return false;
        if (senddate != null ? !senddate.equals(that.senddate) : that.senddate != null) return false;
        if (source != null ? !source.equals(that.source) : that.source != null) return false;
        if (title != null ? !title.equals(that.title) : that.title != null) return false;
        if (writer != null ? !writer.equals(that.writer) : that.writer != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = id != null ? id.hashCode() : 0;
        result = 31 * result + (arctype != null ? arctype.hashCode() : 0);
        result = 31 * result + (channeltype != null ? channeltype.hashCode() : 0);
        result = 31 * result + (title != null ? title.hashCode() : 0);
        result = 31 * result + (flags != null ? flags.hashCode() : 0);
        result = 31 * result + weight;
        result = 31 * result + (litpic != null ? litpic.hashCode() : 0);
        result = 31 * result + (source != null ? source.hashCode() : 0);
        result = 31 * result + (writer != null ? writer.hashCode() : 0);
        result = 31 * result + (keywords != null ? keywords.hashCode() : 0);
        result = 31 * result + ismark;
        result = 31 * result + click;
        result = 31 * result + (senddate != null ? senddate.hashCode() : 0);
        result = 31 * result + (publishdate != null ? publishdate.hashCode() : 0);
        result = 31 * result + goodpost;
        result = 31 * result + badpost;
        result = 31 * result + (description != null ? description.hashCode() : 0);
        result = 31 * result + alllowerpost;
        result = 31 * result + arcrank;
        result = 31 * result + (creater != null ? creater.hashCode() : 0);
        return result;
    }
}
